<template>
	<view class="history-container">
		<view class="blue-background"></view>
		
		<!-- 救援记录列表 -->
		<view class="history-list">
			<!-- 换胎记录 -->
			<view class="history-card">
				<view class="history-header">
					<text class="type">换胎</text>
					<text class="date">2023-02-15</text>
				</view>
				<view class="history-content">
					<view class="info-item">
						<text class="label">订单编号：</text>
						<text class="value">12121211248787</text>
					</view>
					<view class="info-item">
						<text class="label">位置：</text>
						<text class="value">洛阳市道北路32号XXX小区</text>
					</view>
					<view class="info-item">
						<text class="label">车牌：</text>
						<text class="value">奔驰FWE4/豫A98FHJ</text>
					</view>
				</view>
			</view>
			
			<!-- 拖车记录 -->
			<view class="history-card">
				<view class="history-header">
					<text class="type">拖车</text>
					<text class="date">2023-02-15</text>
				</view>
				<view class="history-content">
					<view class="info-item">
						<text class="label">订单编号：</text>
						<text class="value">12121211248787</text>
					</view>
					<view class="info-item">
						<text class="label">起点：</text>
						<text class="value">洛阳市道北路32号XXX小区</text>
					</view>
					<view class="info-item">
						<text class="label">终点：</text>
						<text class="value">洛阳市道北路39号XXXXXX小区</text>
					</view>
					<view class="info-item">
						<text class="label">车牌：</text>
						<text class="value">奔驰FWE4/豫A98FHJ</text>
					</view>
				</view>
			</view>
			
			<!-- 搭电记录 -->
			<view class="history-card">
				<view class="history-header">
					<text class="type">搭电</text>
					<text class="date">2023-02-15</text>
				</view>
				<view class="history-content">
					<view class="info-item">
						<text class="label">订单编号：</text>
						<text class="value">12121211248787</text>
					</view>
					<view class="info-item">
						<text class="label">位置：</text>
						<text class="value">洛阳市道北路32号XXX小区</text>
					</view>
					<view class="info-item">
						<text class="label">车牌：</text>
						<text class="value">奔驰FWE4/豫A98FHJ</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			
		}
	},
	methods: {
		
	}
}
</script>

<style lang="scss" scoped>
.history-container {
	min-height: 100vh;
	background: #f5f5f5;
	position: relative;
	padding: 0 40rpx;
	
	.blue-background {
		position: absolute;
		top: -90rpx;
		left: 0;
		right: 0;
		height: 400rpx;
		background: linear-gradient(135deg, #3887FC, #1B6AE9);
		z-index: 0;
	}
	
	.history-list {
		position: relative;
		z-index: 1;
		padding-top: 20rpx;
	}
	
	.history-card {
		background: #fff;
		border-radius: 16rpx;
		padding: 30rpx;
		margin-top: 30rpx;
		margin-bottom: 20rpx;
		box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.1);
		
		.history-header {
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-bottom: 20rpx;
			padding-bottom: 20rpx;
			border-bottom: 2rpx solid #f5f5f5;
			
			.type {
				color: #4080ff;
				font-size: 32rpx;
				font-weight: 500;
			}
			
			.date {
				color: #999;
				font-size: 26rpx;
			}
		}
		
		.history-content {
			.info-item {
				display: flex;
				margin-bottom: 16rpx;
				
				.label {
					color: #666;
					font-size: 26rpx;
					min-width: 140rpx;
				}
				
				.value {
					color: #333;
					font-size: 26rpx;
					flex: 1;
				}
				
				&:last-child {
					margin-bottom: 0;
				}
			}
		}
	}
}
</style>
